/**
 * create by young (young2f@outlook.com) on 2023/4/16
 */
'use strict';
module.exports = app => {
    const {router, controller} = app;
    router.post('/api/work/create', controller.work.createWork);
    router.post('/api/work/update', controller.work.updateWork);
    router.post('/api/work/delete', controller.work.deleteWork);
    router.post('/api/work/find/many', controller.work.findWorkMany);
    router.post('/api/work/find', controller.work.findWork);
    router.post('/api/work/end', controller.work.endWork);

    router.post('/api/work/timer/create', controller.work.createWorkTimer);
    router.post('/api/work/timer/update', controller.work.updateWorkTimer);
    router.post('/api/work/timer/delete', controller.work.deleteWorkTimer);
    router.post('/api/work/timer/find/many', controller.work.findWorkTimerMany);
    router.post('/api/work/timer/find', controller.work.findWorkTimer);
};
